package ar.edu.utn.frsf.cidisi.upcolbpip2pn.generator.petrinet;

public class Arc {
	public static final String PLACE_TO_TRANSITION = "PtoT";
	public static final String TRANSITION_TO_PLACE = "TtoP";
	
	private static int GlobalArcId = 300001;
	private static int GlobalAnnotId = 310001;

	private String id;
	private String orientation;
	private int posX;
	private int posY;
	private String text;
	private String annotId;
	private Transition transition;
	private Place place;
	
	public Arc(Place place, Transition transition, String orientation){
		GlobalArcId++;
		GlobalAnnotId++;
		
		id = "ID"+GlobalArcId;
		annotId = "ID"+GlobalAnnotId;
		this.orientation = orientation;
		this.transition = transition;
		this.place = place;
		text = "m";
	}
	
	public static void reset(){
		GlobalArcId = 300001;
		GlobalAnnotId = 310001;
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOrientation() {
		return orientation;
	}

	public void setOrientation(String orientation) {
		this.orientation = orientation;
	}

	public int getPosX() {
		return posX;
	}

	public void setPosX(int posX) {
		this.posX = posX;
	}

	public int getPosY() {
		return posY;
	}

	public void setPosY(int posY) {
		this.posY = posY;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getAnnotId() {
		return annotId;
	}

	public void setAnnotId(String annotId) {
		this.annotId = annotId;
	}

	public Transition getTransition() {
		return transition;
	}

	public void setTransition(Transition transition) {
		this.transition = transition;
	}

	public Place getPlace() {
		return place;
	}

	public void setPlace(Place place) {
		this.place = place;
	}



	
}
